﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Callbacks</title>
    <script src="../jquery-2.0.3.js"></script>

</head>
<body>
<script>
    (function() {
        function fn1() {
            alert(1);
        }
        function fn2() {
            alert(2);
        }

        var cb = $.Callbacks();
        cb.add(fn1);
        cb.add(fn2);
        cb.fire();
        cb.remove(fn2);
        cb.fire();

    })();    

    
</script>
</body>
</html>